﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BuXiaChu.OrderDishes.Model;
using BuXiaChu.OrderDishes.BLL;

namespace BuXiaChu.OrderDishes.Web.Admin.ShareCode
{
    public partial class ShareCode1 : System.Web.UI.Page
    {
        protected ShareCodeClassModel classModel = null;
        protected ShareCodeModel parentModel = new ShareCodeModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            classModel = ShareCodeManager.GetByShareCodeClassId(int.Parse(Request.QueryString["classId"]));
            if (!string.IsNullOrEmpty(Request.QueryString["parentId"]))
            {
                parentModel = ShareCodeManager.GetByShareCodeId(long.Parse(Request.QueryString["parentId"]));
            }
        }

        protected string ParentId
        {
            get
            {
                return string.IsNullOrEmpty(Request.QueryString["parentId"]) ? "0" : Request.QueryString["parentId"];
            }
        }
    }
}
